<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>

<html>
    <head>
		<%@ include file="/WEB-INF/views/include/common.jsp" %>
	 <title>권한 샘플 화면</title>
    </head>
    <sec:authorize access="hasRole('ROLE_QADMIN')">
    <h3>
    level 40 : 최상위 : 큐로 관리자 권한 있음
    
    </h3>
    </sec:authorize> 
    <sec:authorize access="hasRole('ROLE_DADMIN')">
    <h3>
    
    level 30 : 대리점 관리자 권한 있음
    </h3>
    </sec:authorize> 
    <sec:authorize access="hasRole('ROLE_CADMIN')">
    <h3>
    
    level 20 : 고객사 관리자 권한 있음
    </h3>
    </sec:authorize> 
    <sec:authorize access="hasRole('ROLE_USER')">
    <h3>
    
    level 10 : 고객사 사용자 권한 있음
    </h3>
    </sec:authorize> 
    <br/>
    <br/>
    <br/>
    <br/>
    
    <sec:authorize access="!hasRole('ROLE_QADMIN')">
    <h3>
    level 40 : 최상위 : 큐로 관리자 권한 없음
    
    </h3>
    </sec:authorize> 
    <sec:authorize access="!hasRole('ROLE_DADMIN')">
    <h3>
    
    level 30 : 대리점 관리자 권한 없음
    </h3>
    </sec:authorize> 
    <sec:authorize access="!hasRole('ROLE_CADMIN')">
    <h3>
    
    level 20 : 고객사 관리자 권한 없음
    </h3>
    </sec:authorize> 
    <sec:authorize access="!hasRole('ROLE_USER')">
    <h3>
    
    level 10 : 고객사 사용자 권한 없음
    </h3>
    </sec:authorize> 
    
    <sec:authorize access="hasAnyRole('ROLE_QADMIN', 'ROLE_DADMIN')">
    <h3>
    level 40 : 최상위 : 큐로 관리자 권한 또는
    level 30 : 대리점 관리자 권한 있음
    <br/>
    둘중에 하나라도 있음
	</h3>
	</sec:authorize>
	
	<sec:authorize access="!hasRole('ROLE_CADMIN')">
		관리자 권한 없음
	</sec:authorize>
	<sec:authorize access="hasRole('ROLE_QADMIN')">
		큐로 관리자 권한 있음	
	</sec:authorize>
	<sec:authorize access="!hasRole('ROLE_QADMIN')">
		<sec:authorize access="hasRole('ROLE_DADMIN')">
		대리점 관리자 권한 있음	
		</sec:authorize>
		<sec:authorize access="!hasRole('ROLE_DADMIN')">
			<sec:authorize access="hasRole('ROLE_CADMIN')">
				고객사 관리자 권한 있음	
			</sec:authorize>	
		</sec:authorize>	
	</sec:authorize>
	
		<!-- 	관리자 권한이 없으면 안나옴. -->
	<div class="groupManage_popup_box popup" id="popup1">
		<div class="tableTitleA ">그룹관리<img class="popup_close" src="${imgUrl}/popup_close.png"></div>
		<div class="content">
			<div class="info"><input type="text"><a class="button2">추가</a></div>
			<div class="map_table">
				<table class="content1" cellpadding="0" cellspacing="0"> 
					<tr valign="top" >
						<th class="table_title_color line" width="30px"><input type="checkbox"></th>
						<th class="table_title_color">관리그룹명</th>
					</tr>
				</table>
			</div>
			<div class="map_table_body">
				<table class="content1" cellpadding="0" cellspacing="0">
					<tbody>
							<tr valign="top" >
								<td width="30px" class="line"><input type="checkbox"></td>
								<td>관리그룹 1</td>
								<td style="display:hidden;">
									<input type="hidden"/>
								</td>
							</tr>
					</tbody>				
				</table>	
			</div><!-- map_table end -->
					
			<div class="Rowbtn1"><a class="button2">삭제</a></div>	
		    <div class="Rowbtn2"><a class="button2">확인</a><a class="button2 last">취소</a></div>
		</div><!-- content end-->	
	</div>	<!--groupManage_popup_box-->
    </body>
</html>

















